<h3>团购报名列表</h3>
<%= will_paginate @baomings %>
<table>
  <tr>
    <th>购买数</th>
    <th>团购项目</th>
    <th>购买时间</th>
    <th>联系人</th>
    <th>地址</th>
    <th>电话</th>
    <th>邮件</th>
    <th>性别</th>
    <th>描述</th>
  </tr>

  <% for baoming in @baomings %>
    <tr>
      <td><%=h baoming.quantity %></td>
      <td><%=baoming.tuangou_pro ? baoming.tuangou_pro.title : "" %></td>
      <td><%= select "baoming","buy_time",time_for_select,{:selected =>baoming.buy_time},{:disabled=>true} %></td>
      <td><%=h baoming.contact_name %></td>
      <td><%=h baoming.address %></td>
      <td><%=h baoming.tel %></td>
      <td><%=h baoming.email %></td>
      <td><%=select :baoming,:sex,sex_for_select,{:select=>baoming.sex},{:disabled=>true}%></td>
      <td><%=truncate(h(baoming.description),:length=>18) %></td>
      <td><%= link_to 'Edit', edit_baoming_path(baoming) %></td>
      <td><%= link_to 'Destroy', baoming, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<br />


<fieldset class="demo">
  <LEGEND>操作说明：</LEGEND>
  <p>
    用于管理团购报名人。
  </p>
</fieldset>
